<%@ page import="java.util.List" %>
<%@ page import="cn.Subject" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021-11-20
  Time: 12:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>课程信息</title>
</head>
<body>
<h1>课程信息表</h1>
<table border="1" cellspacing="0" cellpadding="0">
    <tr>
        <td>课程号</td><td>课程名</td><td>学时</td><td>年级号</td>
    </tr>
    <%
        List<Subject> list=(List<Subject>)request.getAttribute("subjects");
        for(Subject s:list){
    %>
    <tr>
        <td><%=s.getId()%></td><td><%=s.getSubjectname()%></td><td><%=s.getClasshour()%></td><td><%=s.getGradeId()%></td>
    </tr>
    <%}%>
</table>
</body>
</html>
